import request from './axios'

export function getRoleApi(data) {
  return request({
    url: '/role/getRole',
    method: 'get',
    params: data
  })
}
export function addRoleApi(data) {
  return request({
    url: '/role/addRole',
    method: 'post',
    data: data
  })
}
export function delRoleApi(data) {
  return request({
    url: '/role/delrole',
    method: 'post',
    data: data
  })
}
export function searchRoleApi(data) {
	return request({
	  url: '/role/searchRole',
	  method: 'get',
	  params: data
	})
  }
export function getUsersByRole(data){
	return request({
		url: '/role/getUsersByRole',
		method: 'get',
		params: data
	})
}
export function addUsersByRole(data){
	return request({
		url: '/role/addUserByRole',
		method: 'post',
		data: data
	})
}